package com.d3works.apps.bankpayment.service.extract;

import com.d3works.apps.account.service.extract.ExtractContextMoveServiceImpl;
import com.d3works.exception.D3worksException;
import com.d3works.rpc.Context;
import java.util.Map;

public class ExtractContextMoveServiceBankPaymentImpl extends ExtractContextMoveServiceImpl {

  @Override
  public Map<String, Object> getMapFromMoveWizardGenerateReverseForm(Context context)
      throws D3worksException {
    Map<String, Object> assistantMap = super.getMapFromMoveWizardGenerateReverseForm(context);
    assistantMap.put(
        "isHiddenMoveLinesInBankReconciliation",
        (Boolean) context.getOrDefault("isHiddenMoveLinesInBankReconciliation", true));
    return assistantMap;
  }

  @Override
  public Map<String, Object> getMapFromMoveWizardMassReverseForm(Context context) {
    Map<String, Object> assistantMap = super.getMapFromMoveWizardMassReverseForm(context);
    assistantMap.put(
        "isHiddenMoveLinesInBankReconciliation",
        (Boolean) context.getOrDefault("isHiddenMoveLinesInBankReconciliation", true));
    return assistantMap;
  }
}
